package jerry.html.events;

import java.util.List;

/**
 * 
 * 
 * Player connect event
 * 
 * 
 * @author (h0t@_G0|i
 *
 */
public class PlyrConnEvtCapImpl
    extends EvtCap
{

    public PlyrConnEvtCapImpl(List<String> list)
    {
        int i = list.size();
        if(i < 6)
        {
            validEvt = false;
            return;
        }
        validEvt = true;
        timeStamp = Double.valueOf(list.get(0)).doubleValue();
        name = list.get(3);
        playerId = Integer.parseInt(list.get(4));
        pwdHash = "";
        flag = list.get(5);
        if(i == 7)
            pwdHash = list.get(6);
    }

   
    public String name;
    public String pwdHash;
    public String flag;
    public int playerId;
}
